﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication1.Controllers
{
    public class CommonController : Controller
    {
        //
        // GET: /Common/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Error(string aspxerrorpath)
        {
            ViewData["ErrorMsg"] = aspxerrorpath;
            return View();
        }
        [HttpPost]
        public ActionResult Error(FormCollection form)
        {
            ViewData["ErrorMsg"] = Request.Form["aspxerrorpath"];
            return View();
        }
    }
}
